import pandas as pd
import os

proc_csv = "/home/shaonian/SED/SED/data_eng/src/extracted/DESED_FSD50K_domestic_sounds.csv"

filenames = pd.read_csv(proc_csv)["fname"].tolist()
filenames = [str(f) + ".wav" for f in filenames]

print(filenames)

pd.DataFrame(filenames, columns=["filename"]).to_csv(
    "./DESED_FSD50K_filenames.tsv", index=False, sep="\t"
)